<div class="max-height">
    <form class="searchbar">
        <div class="input-group form-inline">
            <div class="input-group">
                <input type="text" placeholder="请输入用户名" class="form-control" ng-model="name">
                <span class="input-group-btn">
                    <button type="submit" class="btn btn-default" ng-click="search(name)">
                        <span class="fa fa-search"></span>
                    </button>
                </span>
            </div>
        </div>
        <div class="input-group tool-bar">
            <button type="button" class="btn btn-default" ng-click="create()">
                <span class=".icon-user-follow"></span> 添加用户
            </button>
        </div>
    </form>
    <a-page-grid option="options" params="params" name="sysUserTable" count="false"></a-page-grid>
</div>
<script type="text/ng-template" id="sysUserDialog">
    <div class="panel panel-default">
        <div class="panel-body">
            <form class="form-horizontal" name="sysUserForm" ng-submit="submit()">
                <input type="hidden" ng-model="sysUser.ik">
                <div class="form-group" ng-class="{'has-error': sysUserForm.name.$error.required}">
                    <label class="col-lg-3 control-label">用户姓名:</label>
                    <div class="col-lg-9">
                        <input type="text" name="name" required class="form-control" ng-model="sysUser.name" placeholder="请输入用户姓名">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-3 control-label">用户编码:</label>
                    <div class="col-lg-9">
                        <input type="text" name="code" required class="form-control" ng-model="sysUser.code" placeholder="请输入用户编码" ng-readonly="isUpdate">
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-lg-offset-9 col-lg-3">
                        <button type="submit" class="btn btn-lg btn-primary" ng-disabled="sysUserForm.$invalid">确认</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</script>